<?php
class ModelChannel extends BaseModel{
	
	function __construct(){
		parent::__construct();
	}

	public static function createTable(){
		$db = MyDB::getInstance();
		$sql_create = 'CREATE TABLE IF NOT EXISTS `ps_channel` (
		`chid` int(6) NOT NULL AUTO_INCREMENT,
		`desc` varchar(255) DEFAULT NULL,
		PRIMARY KEY (`chid`)
		) ENGINE=InnoDB DEFAULT CHARSET=latin1;';
		$db->exec($sql_create);
	}

	public static  function dropTable(){
		parent::dropTableByName('ps_channel');
	}
}